package com.toman.ui.data.report;

import android.os.Bundle;
import android.view.WindowManager;
import android.webkit.WebView;
import android.widget.ImageView;

import com.toman.R;
import com.toman.Util.ToastUtil;
import com.toman.toolbar.WebViewNoTitle;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class ReportWebActivity extends WebViewNoTitle {

    @BindView(R.id.iv_back)
    ImageView ivBack;
    @BindView(R.id.wv_base)
    WebView wvBase;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);

        setContentView(R.layout.web_view_base);
        ButterKnife.bind(this);
        isLandscape();
        init(setUrl());

    }

    @Override
    public String setUrl() {
//        return "http://www.zjtmcloud.com/screendisplay?id=58"+"&token="+token;
        if (getIntent().getStringExtra("html") != null) {
            return getIntent().getStringExtra("html");
//                    + "&token=" + token;
//            return "http://192.168.70.120:8088";
        }
        return "http://www.zjtmcloud.com/login";
//        return "http://192.168.70.109:8011/login";
    }

    @OnClick(R.id.iv_back)
    public void onViewClicked() {
        finish();
    }

    
}
